package com.jlcindia.demo01;

import java.util.Scanner;

public class Test02 {

	public static void main(String[] args) {
		
		long i=0,sum=0,sum1=0;
		System.out.println("*****Enter the nubmer for finding sum of even and odd pissition no.******");
		Scanner sc=new Scanner(System.in);
		long n=sc.nextInt();
		for(;n>0;i++)
		{
		long p=n%10;
		if (p%2==0)
		sum =sum+p;
		else
		sum1=sum1+p;
		n=n/10;
		}
		System.out.println("Sum of the even digit in the number "+sum);
		System.out.println("Sum of the odd digit in the number "+sum1);

		}
}